//
//  CarAddModifyViewController.h
//  CPICMobileServiceApp
//
//  Created by sinosoft on 13-2-27.
//  Copyright (c) 2013年 lizhiwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"
#import "CustomActionSheet.h"
#import "CustomDateActionSheet.h"
@protocol CarAddRefreshDelegate <NSObject>

-(void)RefreshCarRequest;
@end

@interface CarAddModifyViewController : UIViewController<UITextFieldDelegate,UITableViewDataSource,UITableViewDelegate,UICustomActionSheetDelegate,UICustomDateActionSheetDelegate>
{
    NSMutableArray *arrCarSetting;
    NSMutableArray *arrCarInfo;
    BOOL showProgress;
    MBProgressHUD* progress;
    
    NSMutableArray *arrProduct;
    NSMutableArray *arrProductCode;
    
    NSMutableArray *arrCarBrand;
    NSMutableArray *arrCarBrandCode;
    NSMutableArray *arrManufacturerCode;
    
    NSMutableArray *arrCarType;
    NSMutableArray *arrCarName;
    NSString *strBrandCode1;//车辆品牌代码
    NSString *strCarTypeCode;//车辆型号代码
    NSMutableArray *arrLinceType;//
    
    NSMutableDictionary *dicRequestSave;
    NSMutableDictionary *dictRequestSQL;
}
@property(nonatomic,retain)UITableView *TableViewCarSetting;
@property(nonatomic,retain)UITableView *TableViewCarInfo;
@property(nonatomic,retain)UITableView *TableViewDate;
@property(nonatomic,retain)UITableView *TableViewVolume;
@property(nonatomic,retain)UITableView *TableViewSkin;

@property(nonatomic,retain)UITextField *txtCarProduct;
@property(nonatomic,retain)UITextField *txtCarBrand;
@property(nonatomic,retain)UITextField *txtCarType;
@property(nonatomic,retain)UITextField *txtCarNum;
@property(nonatomic,retain)UITextField *txtOwnerName;
@property(nonatomic,retain)UITextField *txtLinceNo;
@property(nonatomic,retain)UITextField *txtFirstDate;
@property(nonatomic,retain)UITextField *txtVolume;
@property(nonatomic,retain)UITextField *txtPolicyName;
@property(nonatomic,retain)UITextField *txtLinceType;

@property(nonatomic,retain)UIButton *btnCarProduct;
@property(nonatomic,retain)UIButton *btnCarBrand;
@property(nonatomic,retain)UIButton *btnCarType;

@property (strong, nonatomic) MBProgressHUD* progress;
@property (nonatomic,retain)NSString *strDetailProduct;
@property (nonatomic,retain)NSString *strDetailBrand;
@property (nonatomic,retain)NSString *strDetailProductName;
@property (nonatomic,retain)NSString *strDetailBrandName;
@property (nonatomic,retain)NSString *strCarID;
@property (nonatomic,retain)NSString *strCarTypeCode;
@property (nonatomic)BOOL AddorDetail;//进入的是详情页面还是添加页面标志,YES表示是添加页面，NO表示是详情页面

@property (nonatomic,retain)NSString *strManufacturerCode1;//车辆厂商代码

@property(nonatomic,strong) id<CarAddRefreshDelegate>CarRefreshdelegate;
-(void)setBrandRequest:(NSString *)strManufacturerCode;//向太保移动平台发送请求报文
-(void)setTypeRequest:(NSString *)strTypeCode;//向太保移动平台发送请求报文
@end
